﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin.Master" AutoEventWireup="true" CodeBehind="scores.aspx.cs" Inherits="GameAdmin.Pages.scores" %>
<asp:Content ID="Content1" ContentPlaceHolderID="plcHolderContent" runat="server">
    <h2>Přehled skóre uživatelů</h2>

    <fieldset>
        <legend>Filtrování podle data</legend>
        <asp:Label AssociatedControlID="txtSince" Text="od:" runat="server" /><asp:TextBox ID="txtSince" runat="server" />
        &nbsp;<asp:Label AssociatedControlID="txtTill" Text="do:" runat="server" /><asp:TextBox ID="txtTill" runat="server" />
        <asp:Button ID="btnFilter" Text="Zobrazit" runat="server" />
    </fieldset>

    <asp:GridView ID="gw" CssClass="gw" AlternatingRowStyle-CssClass="alternate" HeaderStyle-CssClass="header" ClientIDMode="Predictable" AutoGenerateColumns="false" ShowHeaderWhenEmpty="true" runat="server">
        <Columns>
            <asp:BoundField HeaderText="ID" DataField="id" />
            <asp:BoundField HeaderText="Skóre" DataField="score" />
            <%--<asp:BoundField HeaderText="Čas" DataField="time" />--%>
            <asp:BoundField HeaderText="Uživatel" DataField="userLogin" />
            <asp:BoundField HeaderText="Datum" DataField="datum" />
            <asp:TemplateField ShowHeader="False">
                <ItemTemplate>
                    <asp:LinkButton runat="server" Text="Odstranit" CommandName="Delete" CommandArgument='<%# Eval("id") %>' OnClientClick="return confirm('Opravdu odstranit?');" />               
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>

    <asp:Panel id="pnlPagination" runat="server">
        <asp:Literal Text="Strana" runat="server" />:&nbsp;
    </asp:Panel>
</asp:Content>
<asp:Content ContentPlaceHolderID="plcHolderScripts" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $.datepicker.setDefaults($.datepicker.regional["cs"]);

            $("#txtSince").datepicker();
            $("#txtTill").datepicker();
        });
    </script>
</asp:Content>